package mylibrary.thread.waitAndNotify;

public class MyThread_2 extends Thread {

	Object lock;

	public MyThread_2(Object o) {
		lock = o;
	}

	public void run() {
		synchronized (lock) {
			System.out.println("Enter Thread 2 and notify");
			lock.notify();
		}
	}
}
